﻿using StarPizza.Model.BaseModel;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StarPizza.ViewModel.Core
{
    public class ToppingVM : IngredientVM
    {
        Topping topping;
        public Topping WrappedTopping
        {
            get { return topping; }
        }
        public ToppingVM(Topping topping)
            : base(ingredient: topping)
        {
            this.topping = topping;
        }

        //Forward accessor
        public string Name
        {
            get { return topping.Name; }
        }
    }
}
